document.write('') document.write('
<\/td>\n | $UserCredential<\/span> =<\/span> Get-Credential<\/span><\/td>\n <\/tr>\n <\/td>\n | $Session<\/span> =<\/span> New-PSSession<\/span> -<\/span>ConfigurationName Microsoft.Exchange -<\/span>ConnectionUri https://<\/span>outlook.office365.com<\/span>/<\/span>powershell-<\/span>liveid/<\/span>?proxyMethod=<\/span>RPS -<\/span>Credential $UserCredential<\/span> -<\/span>Authentication Basic -<\/span>AllowRedirection<\/td>\n <\/tr>\n | <\/td>\n | Import-PSSession<\/span> $Session<\/span><\/td>\n <\/tr>\n<\/table>\n\n\n <\/div>\n\n <\/div>\n<\/div>\n\n <\/div>\n | |